/**
 * 
 */
package com.bagtrack.dao.impl;

import java.util.Collection;

import org.apache.log4j.Logger;
import org.springframework.dao.DataAccessException;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.bagtrack.dao.ICarouselDAO;
import com.bagtrack.model.Carousel;


/**
 * @author Brian Boyle
 * Nov 12, 2011
 *
 */
public class CarouselDAOImpl extends HibernateDaoSupport implements ICarouselDAO {

    private static final Logger log = Logger.getLogger(CarouselDAOImpl.class);

    @Override
    public Collection<Carousel> loadCarousels() throws DataAccessException {
        Collection<Carousel> carouselList = getHibernateTemplate().loadAll(Carousel.class);
        return carouselList;
    }

    @Override
    public void saveCarousel(Carousel carousel) {
        getHibernateTemplate().save(carousel);
    }

    @Override
    public void delete(Carousel carousel) {
    }


}
